<%@ page language="java"  pageEncoding="UTF-8"%>

<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台-登录</title>
<script src="<%=request.getContextPath() %>/resources/js/fixPNG.js" type="text/javascript"></script>
<!--[if lt IE 7]>       
 <script src="js/fixPNG.js"></script>         
 <script>
 DD_belatedPNG.fix('img,.nav ul li a,.nav ul li a:hover');
 </script>     
<![endif]-->
<link rel="stylesheet" href="<%=request.getContextPath() %>/resources/css/login.css" type="text/css"></link>
<script type="text/javascript" src="<%=request.getContextPath()%>/resources/js/jquery-1.8.3.js"></script>

<script type="text/javascript" src="<%=request.getContextPath()%>/resources/esayUI/1.3.2/jquery.easyui.min.js"></script>
<link id="easyuiTheme" rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/resources/esayUI/1.3.2/themes/default/easyui.css"  />
<script type="text/javascript" src="<%=request.getContextPath()%>/resources/esayUI/1.3.2/locale/zh-cn.js"></script>
  <script type="text/javascript" src="${basePath}/resources/lhgDialog/lhgdialog.min.js?skin=metro"></script>

<script type="text/javascript">
var password;
var username;
var pwdPrompt;
var vcode;
var qrcodeInterval;
var qrloginInterval;
var dialogQrpasswd;

$(function() {
	username = $('#username');
	password = $('#password');
	pwdPrompt = $('#pwdPrompt');
	vcode = $('#vcode');
	
/* 	$('#loginBTN').click(function() {
		loginHandler();
	});
 */
	/* $('#login').keydown(function(event){
		if(event.keyCode==13){
			loginHandler();
		}
	}); */
/* /* 	 
	pwdPrompt.focus(function() {
		pwdPrompt.hide();
		password.show().focus();
	});

	password.blur(function() {
		if ($(this).val() == "") {
			pwdPrompt.show();
			password.hide();
		}
	}); */
});

<%-- function loginHandler() {
	var name = username.val();
	var pwd = password.val();
	if (name && name != '您的用户名' && pwd && pwd != '您的密码') {
		$.post("", {"username":name, "password":pwd, "vcode":vcode.val()}, function(data) {
			if (data && data.result == 1) {
				window.location.href = "<%=request.getContextPath() %>/admin/index";
			} else if (data && data.result == 0 && data.msg == "验证码错误!") {
				$.messager.alert('提示', data.msg, 'warning');
				setTimeout('window.location.href = "<%=request.getContextPath() %>/login"', 1000);
			} else {
				$.messager.alert('提示', data.msg, 'warning');
				setTimeout('window.location.href = "<%=request.getContextPath() %>/login"', 1000);
			}
		}, "json");
	}
}
 --%>
function getVcode(img) {
	img.src="drawCheckCode?"+Math.random();
}


</script>
</head>
<body>
<!--top开始-->
<div id="login">
<div class="login">
<div class="login_logo"><img src="<%=request.getContextPath() %>/resources/css/images/login_logo.png" width="630" height="113" /></div>
<div class="clear"></div>
<form action="" method="post">
	<div class="Box">
		<input type="text" id="username" name="username" namestyle=" font-size:14px; color:#494949;" class="login_text" value="admin" onfocus="if (value =='您的用户名'){value ='';}" onblur="if (value ==''){value='您的用户名';}"/>
		<input type="password" id="password"  name="password" class="login_passward"   value="123456" style="font-size:14px; color:#494949;"/>
		<label style="float:left; width:325px;color:#333;"></label>
		<img src="<%=request.getContextPath() %>/drawCheckCode" class="login_code" onclick="getVcode(this)"/>
		<input type="text" id="vcode" style=" font-size:14px; color:#494949;" class="login_vcode" value="请输入验证码" onfocus="if (value =='请输入验证码'){value ='';}" onblur="if (value ==''){value='请输入验证码';}"/>
		<input id="loginBTN" type="submit" value=" " class="login_btn" />
	</div>
	<div class="clear"></div>
</form>
</div>
<div class="login_foot">
<span style="float:left;">*************</span>                         
<span style="float:right;"><img src="<%=request.getContextPath() %>/resources/css/images/small_logo.png" width="15" height="13" />****&nbsp;&nbsp;技术支持：400-600-7698</span>
<div class="clear"></div>
</div>
</div> 
</div>
<!--top结束-->
</body>
</html>